æòÅⁿâoâiü[

Application newProject() Method


    app.newProject()

Description

    The newProject method opens a new project in After Effects, replicating the File > New > New Project menu command. If a project is already open and has been edited the user will be prompted to save.

    Use app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES) to close an open project before opening a new one.

Parameters

    None.

Returns

    Project object; null if the user cancels a Save dialog in response to having an open project that has been edited since the last save.

Example

    app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES);
    app.newProject();

See also

    Project close() Method